//
//  LuckViewController.m
//  MyLottery
//
//  Created by wpapple on 16/5/27.
//  Copyright © 2016年 wpapple. All rights reserved.
//

#import "LuckViewController.h"
#import "LuckView.h"

@interface LuckViewController ()

@end

@implementation LuckViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.layer.contents = (__bridge id _Nullable)([UIImage imageNamed:@"LuckyBackground"].CGImage);
    
    LuckView *luckview = [LuckView luckView];
    
    luckview.bounds = CGRectMake(0, 0, 286, 286);
    luckview.center = self.view.center;
    
    luckview.layer.cornerRadius = 286 * 0.5;
    luckview.layer.masksToBounds = YES;
    
    [self.view addSubview:luckview];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
